import com.qiniu.util.Auth;
import com.qiniu.util.StringMap;

public class Main {
    public static void main(String[] args) {
        String accessKey = ""; // 去七牛云官网找
        String secretKey = "";// 去七牛云官网找
        String bucket = ""; // 去七牛云官网找
        long expireSeconds = 3600 * 24 * 180;   //过期时间这里是 180天
        StringMap putPolicy = new StringMap();
        Auth auth = Auth.create(accessKey, secretKey);
        String upToken = auth.uploadToken(bucket, null, expireSeconds, putPolicy);
        System.out.println("你的 kodo 上传token 是：" + upToken);
    }
}
